{extend name="common/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">授权域名添加
                    <span class="pull-right">
                    <label class="label label-success pull-right">
                        剩余余额：{$money}元</label>
                </span>
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body">
                <div class="alert alert-info"><i class="fa fa-volume-up"></i>&nbsp;
                    API地址：http://api.open.mqiuqiu.com/<br/>
                    <i class="fa fa-volume-up"></i>&nbsp; 在线充值请联系QQ：13242463。对接方法请看最底部的API使用
                </div>
            </div>
            <hr class="widget-separator">
            <div class="widget-body">
                <form method="post" action="{:url('IndexAjax/docking')}" role="form" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">授权域名：</label>
                        <div class="col-sm-9">
                            <input type="text" name="domain" placeholder="请输入无WWW的域名(自动赠送www授权)" class="form-control" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">联系QQ：</label>
                        <div class="col-sm-9">
                            <input type="text"  name="qq" placeholder="请输入联系人QQ号用于找回域名！" class="form-control" required>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">授权模式：</label>
                        <div class="col-sm-9">
                            <select name="type" class="form-control">
                                <option selected value="0">请选择授权模式</option>
                                <option value="1">域名授权 - 免费版</option>
                                <option value="2">域名授权 - 20元自定义广告内容</option>
                            </select>
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button class="btn btn-success" type="submit">&lt;&lt;&lt;添加授权&gt;&gt;&gt;</button>
                            &nbsp; &nbsp; <a href="?action=clean" class="btn btn-space btn-danger">删除过期域名</a>
                        </div>
                    </div>
                </form>

            </div>
        </div>
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">域名列表
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead><tr><th>域名</th><th>联系QQ</th><th>到期时间</th><th>归属用户</th><th>授权状态</th><th>操作</th></tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>www.zhifuu.com</td>
                        <td>13242463</td>
                        <td>2017-09-19 00:00:00</td>
                        <td>10000</td>
                        <td>正常</td>
                        <td>
                            <a href="?act=del&id=12" class="btn-xs btn-warning" onclick="return confirm("确认删除？");">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>

{/block}
